import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import axios from 'axios'
import '@/icons' // icon
import '@/permission' // permission control

// 粒子背景组件
import VueParticles from 'vue-particles'

// https://www.yuque.com/chaojie-vjiel/vbwzgu/xl46cd
import EleForm from 'vue-ele-form'
import EleFormTableEditor from 'vue-ele-form-table-editor'
import EleFormGallery from 'vue-ele-form-gallery'

Vue.prototype.$http = axios

Vue.use(EleForm, {
  input: { placeholder: ' ' },
  textarea: { placeholder: ' ' }
})
Vue.component('table-editor', EleFormTableEditor)
Vue.component('gallery', EleFormGallery)

Vue.use(VueParticles)

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
